package wf.source.hrm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import wf.source.hrm.service.IImageValidateCodeService;

@RestController
@RequestMapping("/imgCode")
public class ImageValidateCodeController {
    @Autowired
    private IImageValidateCodeService imageValidateCodeService;
    @GetMapping("/{key}")
    public  String generateImgCode(@PathVariable(name = "key")String key){
        return imageValidateCodeService.generateImgCode(key);
    }
}
